<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改订单')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-order-edit" th:object="${orderOrder}">
            <input name="id" th:field="*{id}" type="hidden">

            <div class="form-group">
                <!--(0-待支付,1-待发货,2-待收货，3-已完成,4-退货中,5-退货成功, 6-换货中)-->
                <label class="col-sm-3 control-label">订单状态：</label>
                <div class="col-sm-8">
                    <!--<div class="radio-box">-->
                    <!--<input type="radio" name="status" value="">-->
                    <!--<label th:for="status" th:text="未知"></label>-->
                    <!--</div>-->
                    <!--<span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>-->

                    <div class="radio-box" th:each="dict : ${@dict.getType('orderStatus')}">
                        <input type="radio" th:id="${'status_' + dict.dictCode}" name="status" th:value="${dict.dictValue}" th:field="*{status}">
                        <label th:for="${'status_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">物流名称：</label>
                    <div class="col-sm-8">
                        <select id="shippingName" name="shippingName" class="form-control m-b" >
                            <option value="">请选择物流</option>
                            <option th:each="dict : ${expressList}"
                                    th:text="${dict.name}"
                                    th:field="*{shippingName}"
                                    th:value="${dict.name}" ></option>
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">物流编号：</label>
                    <div class="col-sm-8">
                        <input name="shippingCode" th:field="*{shippingCode}" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">买家留言：</label>
                    <div class="col-sm-8">
                        <input name="buyerMsg" th:field="*{buyerMsg}" class="form-control" type="text" readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">收货人姓名：</label>
                    <div class="col-sm-8">
                        <input name="consigneeName" th:field="*{consigneeName}" class="form-control" type="text" readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">收货人电话：</label>
                    <div class="col-sm-8">
                        <input name="consigneeTel" th:field="*{consigneeTel}" class="form-control" type="text" readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">收货人地区：</label>
                    <div class="col-sm-8">
                        <input name="area" th:field="*{area}" class="form-control" type="text" readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">收货人地址：</label>
                    <div class="col-sm-8">
                        <input name="address" th:field="*{address}" class="form-control" type="text" readonly>
                    </div>
                </div>
<!--                <div class="form-group">-->
<!--                    <label class="col-sm-3 control-label">买家身份证号：</label>-->
<!--                    <div class="col-sm-8">-->
<!--                        <input name="address" th:field="${member.idCard}" class="form-control" type="text">-->
<!--                    </div>-->
<!--                </div>-->
<!--                <div class="form-group">-->
<!--                    <label class="col-sm-3 control-label">身份证图片：</label>-->
<!--                    <div class="col-sm-8">-->
<!--                        <img th:src="${member.cardHeaderImg}" style='height: 200px;width: 200px'>-->
<!--                        <img th:src="${member.cardBackImg}" style='height: 200px;width: 200px'>-->
<!--                    </div>-->
<!--                </div>-->
            </div>


        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "system/order";
        $("#form-order-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-order-edit').serialize());
            }
        }

    </script>
</body>
</html>
